package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.Activity;
import com.ecoolex.hotel.saas.entity.ActivityExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface ActivityMapper {
    long countByExample(ActivityExample example);

    int deleteByExample(ActivityExample example);

    int deleteByPrimaryKey(Integer activityId);

    int insert(Activity record);

    int insertSelective(@Param("record") Activity record, @Param("selective") Activity.Column ... selective);

    Activity selectOneByExample(ActivityExample example);

    List<Activity> selectByExample(ActivityExample example);

    Activity selectByPrimaryKey(Integer activityId);

    Activity selectByPrimaryKeyWithLogicalDelete(@Param("activityId") Integer activityId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") Activity record, @Param("example") ActivityExample example, @Param("selective") Activity.Column ... selective);

    int updateByExample(@Param("record") Activity record, @Param("example") ActivityExample example);

    int updateByPrimaryKeySelective(@Param("record") Activity record, @Param("selective") Activity.Column ... selective);

    int updateByPrimaryKey(Activity record);

    int batchInsert(@Param("list") List<Activity> list);

    int batchInsertSelective(@Param("list") List<Activity> list, @Param("selective") Activity.Column ... selective);

    int logicalDeleteByExample(@Param("example") ActivityExample example);

    int logicalDeleteByPrimaryKey(Integer activityId);
}